package com.woniuxy.micropurchaseserver.purchaseordermsg.service;

import com.woniuxy.micropurchaseserver.bean.PurchaseOrderBean;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface PurchaseOrderService {
    /**
     * 查询所有采购单
     * @return
     */
    public List<PurchaseOrderBean> findAllPurchaseOrder(PurchaseOrderBean purchaseOrderBean);

    /**
     * 根据id删除采购单
     * @param id
     * @return
     */
    public Integer DeletePurchaseOrderById(Integer id);

    /**
     * 修改采购单
     * @param purchaseOrderBean
     * @return
     */
    public Integer UpdatePurchaseOrder(PurchaseOrderBean purchaseOrderBean);

    /**
     * 新增采购单
     * @param purchaseOrderBean
     * @return
     */
    public Long InsertPurchaseOrder(@Param("porder") PurchaseOrderBean purchaseOrderBean);
}
